﻿using System;
using System.Linq.Expressions;

namespace DotNetRepository
{
    public class EntityEnumerationArgs<TEntity>
        where TEntity : class, IEntity
    {
        public Expression<Func<TEntity, bool>> Association;
        public IEntity Container;

        /// <summary>
        /// The interval (in seconds) at which the enumeration will check for 
        /// new values from the database.  Default is 120 seconds.
        /// </summary>
        public int RefreshInterval = 120;
    }
}
